<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      			xmlns:h="http://java.sun.com/jsf/html"
      			xmlns:f="http://java.sun.com/jsf/core"
      			xmlns:ui="http://java.sun.com/jsf/facelets"
      			xmlns:a4j="http://richfaces.org/a4j"
      			xmlns:rich="http://richfaces.org/rich"
				template="/site/private/template/template.xhtml">
				
	<ui:define name="conteudo">
	
		<h:form>
			<div style="width: 100%; height: 50px;">
				<div style="border: 1px solid; width: 70px; height: 30px; float: left;">
					<a4j:commandLink value="#{mensagem['data.anterior']}" actionListener="#{dataMB.consultarCalendarioAnterior}" render="painelCalendario"></a4j:commandLink>
				</div>
				<div style="border: 1px solid; width: 50px; height: 30px; float: left;">
					<a4j:commandLink value="#{mensagem['data.proximo']}" actionListener="#{dataMB.consultarCalendarioProximo}" render="painelCalendario"></a4j:commandLink>
				</div>
			</div>
		
			<a4j:outputPanel id="painelCalendario">
				<div style="width: 80%;" align="center">
					<h:outputText value="#{dataMB.dataMDV.calendarFormatado}" />
				</div>
			
				<div style="width: 80%;" align="center">
					<rich:list value="#{dataMB.dataMDV.listDias}" var="dia" type="definitions">
				  		<div style="float: left; width: 70px; height: 60px; border: 1px solid; margin-left: 2px;" align="center">
				  			<h:outputText value="#{dia.descricao}" />
				  		</div>
					</rich:list>
				  	<rich:list value="#{dataMB.dataMDV.list}" var="dia" type="definitions">
				  		<div style="float: left; width: 70px; height: 60px; border: 1px solid; margin-left: 2px;  margin-top: 2px;" align="center">
				  			<h:outputText value="#{dia.dia}" />
				  		</div>
				  	</rich:list>
			  	</div>
		  	</a4j:outputPanel>
	  	</h:form>
	  	
	</ui:define>
		
</ui:composition>
